@import "../../../../asset/stylesheet/common.less";
.container-bg {
  .container {
    pointer-events: auto;
    height: 100%;
    width: 100%;
  }
  position: absolute;
  left: 960px;
  top: 149px;
  width: 938px;
  height: 389px;
  background-image: url("../../../../asset/image/screen/electricity.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  .image-rendering();
  pointer-events: none;
}
.title-container {
  position: absolute;
  left: 13px;
  top: 4px;
  .title-selected {
    width: 143px;
    height: 0px;
    border: 4px solid #a9ddee;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
  }
  .title {
    font-size: 16px;
    color: #fff;
    text-align: center;
    font-weight: bolder;
    line-height: 24px;
  }
}
.divider {
  width: 2px;
  height: 297px;
  position: absolute;
  left: 377px;
  top: 55px;
  background-color: #00beff;
  background: -webkit-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(66, 228, 251, 1) 35%,
    rgba(66, 228, 251, 1) 65%,
    rgba(255, 255, 255, 0) 100%
  ); /* Safari、Chrome */

  background: -o-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(66, 228, 251, 1) 35%,
    rgba(66, 228, 251, 1) 65%,
    rgba(255, 255, 255, 0) 100%
  ); /* Opera */

  background: -moz-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(66, 228, 251, 1) 35%,
    rgba(66, 228, 251, 1) 65%,
    rgba(255, 255, 255, 0) 100%
  ); /* Firefox */

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(66, 228, 251, 1) 35%,
    rgba(66, 228, 251, 1) 65%,
    rgba(255, 255, 255, 0) 100%
  ); /* 标准的语法（必须放在最后） */
}
.right-wrap {
  font-size: 14px;
  width: 545px;
  height: 340px;
  position: absolute;
  top: 13px;
  left: 380px;
  pointer-events: auto;
  padding-top: 30px;
  :global {
    .ant-spin-nested-loading {
      min-height: 300px;
      width: 100%;
    }
    .ant-spin-blur::after {
      background-color: transparent;
    }
  }
}
.left-wrap {
  position: absolute;
  top: 52px;
  left: 0;
  width: 140px;
  pointer-events: auto;
  .legend {
    .fresh-air-system,
    .power-energy {
      text-align: center;
      color: #fff;
      line-height: 22px;
      .green-square,
      .blue-square {
        width: 12px;
        height: 12px;
        margin-right: 8px;
        margin-top: 5px;
        display: inline-block;
        vertical-align: top;
        background-color: #02dbb5;
        border-radius: 2px;
      }
      .blue-square {
        background-color: #2bb2ff;
      }
    }
  }
  .title-and-value {
    margin-top: 18px;
    line-height: 22px;
    color: #fff;
    text-align: center;
    .title,
    .value {
      font-size: 14px;
      display: block;
    }
    .value {
      color: #00e4ff;
    }
  }

  .energy-saving-ratio {
    width: 52px;
    margin: 0 auto;
    height: 182px;
    margin-top: 26px;
  }
}
.center-wrap {
  position: absolute;
  top: 39px;
  left: 142px;
  width: 210px;
  pointer-events: auto;
  .electricit-type-item {
    cursor: pointer;
    margin-top: 19px;
    pointer-events: auto;
    width: 100%;
    height: 45px;
    position: relative;
    .text-wrap {
      width: 100%;
      height: 100%;
      position: absolute;
      .name {
        font-size: 12px;
        color: #fff;
        float: left;
        padding-top: 8px;
        padding-left: 10px;
        line-height: 12px;
      }
      .num {
        text-align: right;
        float: right;
        padding-right: 12px;
        .percentage {
          line-height: 12px;
          padding-top: 9px;
          height: 21px;

          color: #ebf51e;
          font-size: 12px;
        }
        .kwh {
          padding-top: 3px;
          color: #01d4f9;
          line-height: 16px;
          font-size: 16px;
        }
      }
    }
    .decoration-bg {
      width: 100%;
      height: 100%;
      position: absolute;

      .angle-left-top {
        width: 15px;
        height: 8px;
        box-sizing: border-box;
        border-left: 1px solid rgba(0, 186, 255, 0.5);
        border-top: 1px solid rgba(0, 186, 255, 0.5);
      }
      .angle-right-top {
        width: 15px;
        height: 8px;
        box-sizing: border-box;
        border-right: 1px solid rgba(0, 186, 255, 0.5);
        border-top: 1px solid rgba(0, 186, 255, 0.5);
        position: absolute;
        right: 0;
        top: 0;
      }
      .angle-left-bottom {
        width: 15px;
        height: 8px;
        box-sizing: border-box;
        border-left: 1px solid rgba(0, 186, 255, 0.5);
        border-bottom: 1px solid rgba(0, 186, 255, 0.5);
        position: absolute;
        left: 0;
        bottom: 0;
      }
      .angle-right-bottom {
        width: 15px;
        height: 8px;
        box-sizing: border-box;
        border-right: 1px solid rgba(0, 186, 255, 0.5);
        border-bottom: 1px solid rgba(0, 186, 255, 0.5);
        position: absolute;
        right: 0;
        bottom: 0;
      }
      .divider {
        width: 115px;
        height: 1px;
        position: absolute;
        left: 0;
        top: 23px;
        background-color: #00beff;
        background: -webkit-linear-gradient(
          120deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(0, 190, 255, 1) 50%,
          rgba(255, 255, 255, 0) 100%
        ); /* Safari、Chrome */

        background: -o-linear-gradient(
          120deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(0, 190, 255, 1) 50%,
          rgba(255, 255, 255, 0) 100%
        ); /* Opera */

        background: -moz-linear-gradient(
          120deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(0, 190, 255, 1) 50%,
          rgba(255, 255, 255, 0) 100%
        ); /* Firefox */

        background: linear-gradient(
          120deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(0, 190, 255, 1) 50%,
          rgba(255, 255, 255, 0) 100%
        ); /* 标准的语法（必须放在最后） */
      }
      .bg {
        position: absolute;
        left: 1px;
        top: 1px;
        width: calc(100% - 2px);
        height: calc(100% - 2px);
        background-color: rgba(0, 186, 255, 0.05);
      }
      &.selected {
        .angle-left-top,
        .angle-right-top,
        .angle-left-bottom,
        .angle-right-bottom {
          border-color: rgba(0, 186, 255, 1);
        }
        .bg {
          background-color: rgba(0, 186, 255, 0.3);
        }
      }
      // ----
    }
  }
}
